<!DOCTYPE html>
<html>
<head>
	<script type="text/javascript" src='./dist/jquery-3.2.1.js'></script>
	<title></title>
</head>
<style type="text/css">
</style>
<body>
</body>
<script type="text/javascript">
//判断是否是数组
arr=[1,3,5,7];	
arr={};
	alert($.isArray(arr));
alert(arr instanceof Array);

//判断是否是函数
function show(){
	alert(111);
}
alert($.isFunction(show));


//判断是否为空对象
obj={'name':'user1'};
obj={};
alert($.isEmptyObject(obj));


//用JS判断是否为空对象
obj={'name':'user','age':'19'};
arr=[];
j=0;
for(i in obj){
	arr[j]=i;
	j++;
}
alert(arr.length);



//去除空格
str='         jsu       ';
if($.trim(str).length<8){
	alert('jjj');
}else{
	alert(1);
}



//获取json对象里面的属性和值
obj={'name':'user','age':'19'};
str=$.param(obj);
alert(str);



</script>
</html>